//
//  MBTestViewController.swift
//  MicroBlog
//
//  Created by ChenJunWen on 2017/11/28.
//  Copyright © 2017年 CJW. All rights reserved.
//

import UIKit

class MBTestViewController: MBBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        title = "第\(navigationController?.childViewControllers.count ?? 0)个"
        
    }
    
    @objc func showNext() -> () {
        let vc = MBTestViewController()
        navigationController?.pushViewController(vc, animated: true)
    }

}

extension MBTestViewController {
    override func setupUI() {
        super.setupUI()
        
        customNavItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", fontsize: 16, target: self, action: #selector(showNext), isBack: false)
    }
}
